
export const instanceColumns = _this => [
  {
    title: '名称',
    key: 'host',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.host}</span>
    }
  },
  {
    title: 'IP',
    key: 'ip',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.ip}</span>
    }
  },
  {
    title: '类型',
    key: 'type',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.type}</span>
    }
  },
  {
    title: 'Service Name',
    key: 'serviceName',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.serviceName}</span>
    }
  },
  {
    title: 'Charset',
    key: 'Charset',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.charset}</span>
    }
  },
  {
    title: '创建时间',
    key: 'create_time',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.createTime}</span>
    }
  },
  {
    title: '更新时间',
    key: 'update_time',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.updateTime}</span>
    }
  }

]

export const databaseColumns = _this => [
  {
    title: '名称',
    key: 'name',
    width: 150,
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.name}</span>
    }
  },
  {
    title: '描述',
    key: 'comment',
    width: 200,
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.comment}</span>
    }
  },
  {
    title: '创建时间',
    key: 'create_time',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.createTime}</span>
    }
  },
  {
    title: '更新时间',
    key: 'update_time',
    sortable: true,
    render: (h, { row }) => {
      return <span>{row.updateTime}</span>
    }
  }
]
